<header><?php echo __('recent projects') ?></header>
    <?php if (count($projects)): ?>

         
         <div class="results">
             <?php foreach($projects as $project): ?>
             <div class="box_result">
                 <a href="/desktop/<?php echo $project->user_url.'#/project/view/'.$project->id ?>" class="image_result" title="<?php echo $project->title ?>">
                     <span class="appreciate_result"><?php echo $project->appreciation_amount ?></span>
                     <span class="comment_result"><?php echo $project->comment_amount ?></span>
                     <img src="<?php echo $project->thumbnail ? $project->thumbnail : $project->icon ?>" alt="<?php echo $project->title ?>" <?php if(!$project->thumbnail) echo'class="image_icon"' ?>/>
                 </a>
                 <div class="title_result"><a href="/desktop/<?php echo $project->user_url.'#/project/view/'.$project->id ?>"><?php echo Text::limit_chars($project->title, 25, '...')?></a></div>
                 <div class="content_result"><?php echo __('by') ?> <a href="/profile/<?php echo $project->user_url ?>"><?php echo $project->user_name.' '.$project->user_surname ?></a></div>
                 <div class="footer_result"><?php echo  __($project->field_name) ?></div>
             </div>
             <?php endforeach ?>
             <div style="clear: both"></div>
         </div>
    <?php else: ?>
        <ul class="list">
            <li>
                <div class="list_main_container">
                    <div class="list_standard_entre" style="text-align: center; float: none"><?php echo __('no projects to show') ?></div>                   
                </div>
            </li>
        </ul>
     <?php endif ?>